package com.cloudfun.campusshare.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * Created by Huqin on 2020/5/11
 */
@Data
@ApiModel("设备模式创建DTO")
public class DeviceModeCreateDTO {

    @ApiModelProperty("元模式ID")
    @NotEmpty(message = "模式id不能为空", groups = BaseDeviceModeSetDTO.Create.class)
    private String metaModeId;

    @ApiModelProperty("金额")
    @NotEmpty(message = "金额不能为空", groups = BaseDeviceModeSetDTO.Create.class)
    private String price;

    @ApiModelProperty("用量(单位:g)")
    @Min(value = 10,message = "必须是10的倍数")
    private Integer dosage;

}